const rules = {
  name: {
    trim: true,
    required: true,
    maxLength: 60,
    aliasName: '小区名'
  },
  address: {
    trim: true,
    required: true,
    maxLength: 100,
    aliasName: '小区地址'
  }
}
const messages = {
  required: '{name}不能为空'
}
module.exports = class extends think.Logic {
  postAction () {
    this.validate(rules, messages)
  }
  putAction () {
    this.validate(rules, messages)
  }
};
